package cc.comac.saic.hkhy.jsrj.gj.inttools.gitlab;

import org.gitlab4j.api.GitLabApi;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import lombok.Getter;
import lombok.Setter;

/**
 * @Author: Nemo
 * @ClassName: GitlabConfig
 * @Date: 2025/7/3 9:50
 * @Description: gitlab配置类
 **/
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "gitlab")
public class GitlabConfig {
    private String url;
    private String token;

    @Bean
    public GitLabApi getGitLabApi() {
        return new GitLabApi(url, token);
    }
}
